package com.ecommerce.onion.domain;

import java.math.BigDecimal;
import java.util.UUID;
/**
 * @packageName: domain（领域.服务包）
 * @className: OrderProvider(订单提供者)
 * @description: 职位测试领域订单服务的单元测试用
 * @author: luds
 * @version: v1.0
 * @date: 2021-03/25
 */
public class OrderProvider {
    public static Order getCreatedOrder() {
        return new Order(UUID.randomUUID(), new Product(UUID.randomUUID(), BigDecimal.TEN, "productName"));
    }

    public static Order getCompletedOrder() {
        final Order order = getCreatedOrder();
        order.complete();

        return order;
    }
}
